package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SafeguardMapper;
import com.ruoyi.system.domain.Safeguard;
import com.ruoyi.system.service.ISafeguardService;

/**
 * 平台保障服务Service业务层处理
 *
 * @author ruoyi
 * @date 2021-05-19
 */
@Service
public class SafeguardServiceImpl implements ISafeguardService
{
    @Autowired
    private SafeguardMapper safeguardMapper;

    /**
     * 查询平台保障服务
     *
     * @param safeguardId 平台保障服务ID
     * @return 平台保障服务
     */
    @Override
    public Safeguard selectSafeguardById(Long safeguardId)
    {
        return safeguardMapper.selectSafeguardById(safeguardId);
    }

    /**
     * 查询平台保障服务列表
     *
     * @param safeguard 平台保障服务
     * @return 平台保障服务
     */
    @Override
    public List<Safeguard> selectSafeguardList(Safeguard safeguard)
    {
        return safeguardMapper.selectSafeguardList(safeguard);
    }

    /**
     * 新增平台保障服务
     *
     * @param safeguard 平台保障服务
     * @return 结果
     */
    @Override
    public int insertSafeguard(Safeguard safeguard)
    {
        return safeguardMapper.insertSafeguard(safeguard);
    }

    /**
     * 修改平台保障服务
     *
     * @param safeguard 平台保障服务
     * @return 结果
     */
    @Override
    public int updateSafeguard(Safeguard safeguard)
    {
        return safeguardMapper.updateSafeguard(safeguard);
    }

    /**
     * 批量删除平台保障服务
     *
     * @param safeguardIds 需要删除的平台保障服务ID
     * @return 结果
     */
    @Override
    public int deleteSafeguardByIds(Long[] safeguardIds)
    {
        return safeguardMapper.deleteSafeguardByIds(safeguardIds);
    }

    /**
     * 删除平台保障服务信息
     *
     * @param safeguardId 平台保障服务ID
     * @return 结果
     */
    @Override
    public int deleteSafeguardById(Long safeguardId)
    {
        return safeguardMapper.deleteSafeguardById(safeguardId);
    }
}